﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pasta.Medio.Models
{
	public class MediaView
	{
		public MediaView()
		{
		}
		
		public MediaView(string path, int id)
		{
			this.Path = path;
			this.DisplayId = id;
		}

		// recording id
		public int RecordingId { get; set; }

		// id used for display purposes
		public int DisplayId { get; set; }

		// indicates if recording is selected for operation
		public bool Selected { get; set; }

		// path of the recording
		public string Path { get; set; }

		// path of the recording
		public string Name
		{
			get { return System.IO.Path.GetFileName(Path); }
		}

		// type of media
		public Enums.Type Type { get; set; }

		// date the media was created
		public DateTime? RecordedOn { get; set; }

		// timestamp when the media was last modified
		public DateTime ModifiedOn { get; set; }

		// name of the camera model
		public string Camera { get; set; }

		// target name of the media
		public string TargetName { get; set; }

		// size of the source file in bytes
		public long Size { get; set; }

		// Sha1 value of the file
		public string Sha1 { get; set; }

		public bool InCatalog { get; set; }
	}
}
